package com.young.ysepay.controllers;

import com.young.ysepay.service.YsWithdrawalService;
import com.young.ysepay.utils.JSONUtils;
import com.young.ysepay.utils.ReturnUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/6/5 8:34
 * @Des 银盛提现（一清）
 */
@RestController
@RequestMapping("/ysWithdrawal")
public class YsWithdrawalController {
    private static Logger log = LoggerFactory.getLogger(YsController.class);
    @Autowired
    private YsWithdrawalService ysWithdrawalService;
    /**
     * @Author zhaopengjun
     * @Description // 银盛实时提现（一清）
     * @Date 15:03 2019/5/20
     * @Param
     * @return
     **/
    @RequestMapping(value = { "/withdrawal" }, produces = { "text/html;charset=UTF-8" }, method = {
            RequestMethod.POST })
    public String withdrawal(@RequestParam Map<String,Object> mapParams){
        System.out.println("----------- 银盛实时提现------------------");
        return ysWithdrawalService.withdrawal(mapParams);
    }

    /**
     *银盛一清提现查询接口
     */
    @RequestMapping(value = { "/withdrawalQuery" }, produces = { "text/html;charset=UTF-8" }, method = {
            RequestMethod.POST })
    public String withdrawalQuery ( @RequestParam Map<String, Object> mapParams){
        return ysWithdrawalService.withdrawalQuery(mapParams);
    }

}
